import React, { useState } from 'react'
import Parent from './Parent'
// 在孙子 Child 里面拿到 App 数据并修改

export default function App() {
  const [count, setCount] = useState(8)
  const changeCount = () => {
    setCount((count) => count + 1)
  }
  return (
    <div>
      App
      <hr />
      <Parent count={count} changeCount={changeCount} />
    </div>
  )
}